/**
 * @fileOverview
 * The base class for simple class
 * @author huangtonger@aliyun.com
 */

// const G6 = require('@antv/g6');
const G6 = require('../../g6/src');
const Util = G6.Util;

class Base {
  getDefaultCfg() {
    return {};
  }
  constructor(cfg) {
    const defaultCfg = this.getDefaultCfg();
    Util.mix(true, this, defaultCfg, cfg);
    this.init();
  }
  init() {}
  destroy() {}
}

module.exports = Base;
